package com.le.boot2.service.impl;

import com.le.boot2.dao.UserDao;
import com.le.boot2.model.User;
import com.le.boot2.service.UserService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@AllArgsConstructor
public class UserServiceImpl implements UserService {
    UserDao userDao;
    @Override
    public List<User> list() {
        return userDao.list();
    }
}
